package com.acyouzi.leetcode.bit;

/**
 * 17/9/11 15:59
 *
 * @author sunxu
 */
public class HammingDistance {
  public int hammingDistance(int x, int y) {
    return Integer.bitCount(x ^ y);
  }
}
